package com.woniu.controller;

import com.woniu.entity.Result;
import com.woniu.pojo.UserSignStatus;
import com.woniu.service.IUserSignStatusService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author doujiao
 * @since 2022-10-17
 */
@RestController
@RequestMapping("/userSignStatus")
@Api(tags = "用户签约状态")
public class UserSignStatusController extends BaseController{

    @Resource
    private IUserSignStatusService userSignStatusService;

    @GetMapping
    @ApiOperation("查询所有的用户签约状态")
    public Result queryAll(){
        List<UserSignStatus> userSignStatusList = userSignStatusService.list();
        return toDataResult(userSignStatusList);
    }
}
